//
//  MainViewController.swift
//  01-SinaWeibo
//
//  Created by pc on 15/11/8.
//  Copyright © 2015年 file. All rights reserved.
//

import UIKit
import AFNetworking
import SVProgressHUD

class HomeTableViewController: BaseTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        
        visitorLoginView?.setUIInfo(nil, title: "关注一些人，回这里看看有什么惊喜")
    
       
        
        
    }
        func demo() {
            //failed: unacceptable content-type: text/html
            //在使用AFN最常见的问题 没有之一
            let AFN = AFHTTPSessionManager()
            AFN.responseSerializer.acceptableContentTypes?.insert("text/html")
            
            SVProgressHUD.show()
            AFN.GET("http://www.weather.com.cn/data/sk/101010100.html", parameters: nil, success: { (task, result) -> Void in
                //            SVProgressHUD.dismiss()
                
                print(result)
                
                }) { (_, error) -> Void in
                    
                    print(error)
                    
                    SVProgressHUD.showErrorWithStatus("网络君正在思考中")
            }
        }



}
